class MyValue{
  public int vai;
}
public class Test {

    public static void swap(MyValue vai1,MyValue vai2) {
        int tmp = vai1.vai;
        vai1.vai = vai2.vai;
        vai2.vai = tmp;
    }
    public static void main(String[] args) {
        MyValue myValue1 = new MyValue();
        myValue1.vai = 10;
        MyValue myValue2 = new MyValue();
        myValue2.vai = 20;
        swap(myValue1,myValue2);
        System.out.println(myValue1.vai);
        System.out.println(myValue2.vai);



    }


    public static void main1(String[] args) {

        int[][] array = {{1,2,3},{4,5,6}};
        int[][] array1 = new int[][]{{1,2,3},{4,5,6}};
        int[][] array2 = new int[2][3];
    }
}
